﻿namespace DataEntities.Base
{
    public abstract class BusinesObjectBase:IBusinesObjectBase
    {
        private int _id;
        public int Id
        {
            get { return _id;}
            private set { _id = value; }
        }

        protected BusinesObjectBase(int id)
        {
            _id = id;
        }

        public override bool Equals(object obj)
        {
            return this.Id == ((BusinesObjectBase)obj).Id;
        }
    }
}